/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package de.up.ling.irtg.codec


import org.junit.*
import java.util.*
import java.io.*
import de.up.ling.irtg.automata.*
import de.up.ling.irtg.automata.TreeAutomaton
import static org.junit.Assert.*
import de.saar.chorus.term.parser.*;
import de.up.ling.tree.*;
import de.up.ling.irtg.algebra.*;
import de.up.ling.irtg.algebra.graph.SGraph
import de.up.ling.irtg.hom.*;
import static de.up.ling.irtg.util.TestingTools.*;



/**
 *
 * @author koller
 */
class SdpGraphReaderTest {
    @Test
    public void testDM1() {
        InputCodec<SGraph> ic = new SdpGraphInputCodec();
        assert ic.read(DM1) != null;
    }
    
    
    private static final String DM1 = """#20001001
1	Pierre	Pierre	NNP	-	+	_	_	_	_	_	_	_	_	_	_	_
2	Vinken	_generic_proper_ne_	NNP	-	-	compound	_	_	ARG1	ARG1	_	_	_	_	_	_
3	,	_	,	-	-	_	_	_	_	_	_	_	_	_	_	_
4	61	_generic_card_ne_	CD	-	+	_	_	_	_	_	_	_	_	_	_	_
5	years	year	NNS	-	+	_	ARG1	_	_	_	_	_	_	_	_	_
6	old	old	JJ	-	+	_	_	measure	_	_	_	_	_	_	_	_
7	,	_	,	-	-	_	_	_	_	_	_	_	_	_	_	_
8	will	will	MD	-	-	_	_	_	_	_	_	_	_	_	_	_
9	join	join	VB	+	+	_	_	_	_	_	_	ARG1	_	_	_	_
10	the	the	DT	-	+	_	_	_	_	_	_	_	_	_	_	_
11	board	board	NN	-	-	_	_	_	_	ARG2	BV	_	_	_	_	_
12	as	as	IN	-	+	_	_	_	_	_	_	_	_	_	_	loc
13	a	a	DT	-	+	_	_	_	_	_	_	_	_	_	_	_
14	nonexecutive	_generic_jj_	JJ	-	+	_	_	_	_	_	_	_	_	_	_	_
15	director	director	NN	-	-	_	_	_	_	_	_	ARG2	BV	ARG1	_	_
16	Nov.	Nov.	NNP	-	+	_	_	_	_	_	_	_	_	_	_	_
17	29	_generic_dom_card_ne_	CD	-	+	_	_	_	_	_	_	_	_	_	of	_
18	.	_	.	-	-	_	_	_	_	_	_	_	_	_	_	_
""";
}

